package com.usian.apis.admin;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

//对外提供服务的暴露接口
@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface AdChannelControllerApi {
    //根据名称分页查询
    // @poram channelDto
    // @return ResponseResult
    @ApiOperation("频道分页管理")
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    //添加频道
    //@param channel
    //@return
    public ResponseResult save(AdChannel channel);

    //修改频道
    //@param channel
    //@return
    public ResponseResult update(AdChannel channel);

    //根据Id删除
    //@parm id
    //@return
    public ResponseResult deleteById(Integer id);
}
